//配置所有路由的数组
import { RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/home",
    name: "home",
    component: () => import("@/views/Home/Home.vue"),
  },
  {
    path: "/center",
    name: "center",
    component: () => import("@/views/Center/Center.vue"),
  },
  {
    path: "/concat",
    name: "concat",
    component: () => import("@/views/Concat/Concat.vue"),
    meta: { title: '联系我们' }
  },
  {
    path: "/project",
    name: "project",
    component: () => import("@/views/ProjectCenter/ProjectCenter.vue"),
    meta: { title: '项目中心' }
  },
  {
    path: "/project/solution",
    name: "solution",
    component: () => import("@/views/ProjectCenter/Solution/Solution.vue"),
  },
  {
    path: "/laws",
    name: "laws",
    component: () => import("@/views/Laws.vue"),
    meta: { title: '政策法规' }
  },
  {
    path: "/projdetail",
    name: "projdetail",
    component: () => import("@/views/Center/ProjDetail.vue"),
  },
  {
    path: "/association",
    name: "association",
    component: () => import("@/views/Association.vue"),
    meta: { title: '关于我们' }
  },
  {
    path: "/",
    redirect: "/home",
  },
];

export default routes;
